package com.aaa.ar.service;

import com.aaa.ar.service.impl.BookServiceFallBack;
import com.aaa.common.entity.Book;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

/**
 * @author ：杨
 * @date ：Created in 2020/7/24 15:53
 * @description：
 * @modified By：
 * @version:
 */
@FeignClient(name = "bookService",fallback = BookServiceFallBack.class)
public interface BookService {
    @GetMapping("/book/list")
    public List<Book> selectBook();

}
